gui/tray: Prevent talk reply text field being too wide and breaking layout
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 11 Feb 2025 03:25:28 +0000 (11:25 +0800)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 11 Feb 2025 08:13:10 +0000 (09:13 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/tray/ActivityItemContent.qml

index 92d4ed5838b6f24dbfe75703f8e3cef868e0cc68..45fd6591aefa4aeedabadfe7f283527ed8c965d6 100644 (file)
@@ -227,13 +227,14 @@ RowLayout {
 
             Item {
                 Layout.fillWidth: true
+                visible: !talkReplyMessageSent.visible
             }
 
             EnforcedPlainTextLabel {
                 id: talkReplyMessageSent
 
                 height: (text === "") ? 0 : implicitHeight
-                width: parent.width
+                Layout.maximumWidth: parent.width / 2
                 Layout.alignment: Qt.AlignTop | Qt.AlignRight
 
                 text: root.activityData.messageSent